//
//  CommentController.m
//  YouGoWeGo
//
//  Created by 范业君 on 14-11-20.
//  Copyright (c) 2014年 LiuFei. All rights reserved.
//

#import "CommentController.h"
#import "comentCell.h"

@interface CommentController ()<UITableViewDataSource, UITableViewDelegate>

@end

@implementation CommentController


- (void)dealloc
{
    [_tableArray release];
    [_tableView release];
    [super dealloc];
}


- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.tableArray = [NSMutableArray array];
        
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.translucent = NO;
    [self createTableView];

}



- (void)createTableView
{
    self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 64) style:UITableViewStylePlain];
    [_tableView setRowHeight:208.0];
    _tableView.delegate = self;
    _tableView.dataSource = self;
    [_tableView registerClass:[comentCell class] forCellReuseIdentifier:@"ok"];
    [self.view addSubview:_tableView];
    [_tableView release];
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    comentCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ok"];
    
    
    return cell;
}








@end
